package com.adaxi.adc.business.manager.service.impl;

import com.adaxi.adc.business.manager.vo.VehicleTripVo;
import com.adaxi.adc.business.manager.vo.WeekCarVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.adaxi.adc.business.manager.pojo.VehicleTrip;
import com.adaxi.adc.business.manager.service.VehicleTripService;
import com.adaxi.adc.business.manager.mapper.VehicleTripMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【adc-vehicle-trip(车辆行程表)】的数据库操作Service实现
* @createDate 2023-10-01 21:26:20
*/
@Service
public class VehicleTripServiceImpl extends ServiceImpl<VehicleTripMapper, VehicleTrip> implements VehicleTripService{

   @Autowired
   VehicleTripMapper vehicleTripMapper;


    @Override
    public List<VehicleTrip> queryCondition(VehicleTripVo vehicleTripVo) {
        List<VehicleTrip> list=vehicleTripMapper.queryCondition(vehicleTripVo);
        return list;
    }


    @Override
    public List<VehicleTripVo> queryByPage() {
        return baseMapper.queryByPage();
    }

    /**
     * 查询拼单数量
     * @return
     */
    @Override
    public List<WeekCarVo> weekCar() {
        return vehicleTripMapper.weekCar();
    }


}




